//
//  PrivacyViewController.m
//  beautyLamp
//
//  Created by Tam Kwok To Michael on 2017/8/8.
//  Copyright © 2017年 Tam Kwok To Michael. All rights reserved.
//

#import "PrivacyViewController.h"

@interface PrivacyViewController ()

@property (nonatomic, strong) NSString *agreeStr;

@property (weak, nonatomic) IBOutlet UITextView *privacyTextView;

@end

@implementation PrivacyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
}

- (void)setupUI {
    self.title = @"隐私协议";
    NSString *fileURL = [[NSBundle mainBundle] pathForResource:@"隐私协议" ofType:@"txt"];
    self.agreeStr = [NSString stringWithContentsOfFile:fileURL encoding:NSUTF8StringEncoding error:nil];
    
    self.privacyTextView.text = self.agreeStr;
    self.privacyTextView.editable = NO;
}

@end
